#include<iostream>
using namespace std;
class CAccount {
private:
	long account;
	char name[10];
	float balance;
public:
	void check() {
		cout << name << "'s balance is " << balance << endl;
	}
	void input() {
		cin >> account >> name >> balance;
	}
	void deposit(){
		int num;
		cin >> num;
		balance += num;
		cout << "saving ok!" << endl;
	}
	void withdraw() {
		int num;
		cin >> num;
		if (num <= balance) {
			balance -= num;
			cout << "withdraw ok!" << endl;
		}
		else {
			cout << "sorry! over limit!" << endl;
		}
	}
};
int main()
{
	CAccount arr[2];
	for (int i = 0; i < 2; i++) {
		arr[i].input();
		arr[i].check();
		arr[i].deposit();
		arr[i].check();
		arr[i].withdraw();
		arr[i].check();
	}
	return 0;
}